package com.csyf.manager.entity;

import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author: casper
 * @Description: 支付宝账户
 * @Date: Created in 2018/10/25 18:39
 */
@Data
@Table(name = "sys_ali_account")
public class SysAliAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(generator="JDBC")
    private Long id;

    /*通道编号*/
    private String channelNo;

    /*商户名称*/
    private String mchName;

    /*支付宝appid*/
    private String appid;

    /*支付宝公钥*/
    private String publicKey;

    /*支付宝私钥*/
    private String privateKey;

    /*单笔限额*/
    private BigDecimal singleLimit;

    /*单日限额*/
    private BigDecimal dailyLimit;

    /*通道费率*/
    private BigDecimal channelRate;

    /*通道状态（0-不可用  1-可用）*/
    private Integer channelStatus;

    /*满额状态(0-关闭  1-开启）*/
    private Integer quotaStatus;

    /*提现状态(0-未提 1-待提 2-已提）*/
    private Integer withdrawalStatus;

    /*提醒限额*/
    private BigDecimal hintLimit;


    /**
     * 今日交易
     */
    @Transient
    private BigDecimal todaymoney;

    /**
     * 账户余额
     */
    @Transient
    private BigDecimal accountMoney;



}
